package cn.tedu.qxhouserent.passport.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@TableName("admin_role")
public class AdminRole implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;
    private Long roleId;
    private Long adminId;
    @JsonFormat(pattern = "yyyy年MM月dd日 HH：mm：ss",timezone = "GMT+8")
    private LocalDateTime gmtCreate;
    @JsonFormat(pattern = "yyyy年MM月dd日 HH：mm：ss",timezone = "GMT+8")
    private LocalDateTime gmtModified;
}
